package org.redr.canvas;

import java.io.File;

public class OSPath {
	public static File pathJoin(Object...strings )
	{
		File baseFile = new File(strings[0].toString());
		for (int i=1; i<strings.length; i++)
		{
			baseFile = new File(baseFile, strings[i].toString());
		}
		
		return baseFile;
	}

	public static File join(File file, Object...strings) {
		File baseFile = file;
		for (int i=0; i<strings.length; i++)
		{
			baseFile = new File(baseFile, strings[i].toString());
		}
		
		return baseFile;
	}
}
